home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 January / pcwk_01_1999.iso / Wtestowe / Perform / data.z / Perf95UR.dll / [0] next >
Text File  |  1998-09-28  |  2KB  |  47 lines

  1.                                              //
  2. //        None                                                                //
  3. //                                                                             //
  4. //  Modification History                                                     //
  5. //    08/11/95 New                                                             //
  6. //    08/23/95 F1 same help as help button                                    //
  7. // ======================================================================== //
  8. void 
  9. CBThreadPrioDlg::OnHelpButton() 
  10. {
  11.         long lID = HID_BASE_RESOURCE+m_nIDHelp;        //0x2000 + 0x8a
  12.         AfxGetApp()->WinHelp(lID);
  13. }
  14.  
  15.  
  16. // ======================================================================== //
  17. //  CBThreadPrioDlg::OnCommandHelp(WPARAM, LPARAM lParam)                    //
  18. //                                                                             //
  19. //  In response to F1 being pressed, we intercept the WM_HELP message         //
  20. //  before it gets sent to the main frame window.  We need to do this        //
  21. //  because we do all the help processing via the OnHelp routine above.        //
  22. //  This will provide context sensitive help on whichever control had        //
  23. //  the focus when F1 was pressed.                                            //
  24. //                                                                            //
  25. //  RETURN VALUE:                                                              //
  26. //      TRUE    - indicates that we handled the help request                //
  27. //        FALSE    - search for next command handler in chain                    //
  28. //                                                                             //
  29. //  PARAMETERS:                                                                 //
  30. //        lParam                                                                //
  31. //                                                                             //
  32. //  Modification History                                                     //
  33. //    08/11/95 New                                                             //
  34. //    08/23/95 F1 same help as help button                                    //
  35. // ======================================================================== //
  36. LRESULT 
  37. CBThreadPrioDlg::OnCommandHelp(WPARAM, LPARAM lParam)
  38. {
  39.     // Indicate that we handled the WM_HELP request.  Otherwise, it gets
  40.     // passed to the main frame window.
  41.  
  42.     // Try to invoke the same help as the Help button w/o bringing
  43.     // up context sensitive help
  44.     CBThreadPrioDlg::OnHelpButton();
  45.     return TRUE;
  46. }